package xcmg.device.dao.mapper;

import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.boxup.BoxupMainDO;
import org.apache.ibatis.annotations.Mapper;
import xcmg.device.service.vo.boxup.BoxupMainVO;

import java.util.List;

@Mapper
public interface BoxupMainMapper {
    int deleteByPrimaryKey(String boxupId);

    int insert(BoxupMainDO record);

    int update (BoxupMainDO record);

    BoxupMainDO item(String boxupId);

    BoxupMainDO getOne(BoxupMainVO recode);

    List<BoxupMainDO> list(BoxupMainVO recode);

    int countForReceipt(@Param("deliveryReceiptId")String deliveryReceiptId);

    int updateByReceiptId (@Param("deliveryReceiptId")String deliveryReceiptId);

    List<BoxupMainDO> listByDelivery(@Param("orgId") String orgId, @Param("dealerOrgIds") List<String> dealerOrgIds);

    int updateByBoxupNo(BoxupMainDO record);

    List<BoxupMainDO> listTotalWeight(@Param("boxupNo")String boxupNo);
    

}